#include "..\utils.h"
#include <fstream>
using namespace std;
// k组数据的n和m
int nArr[10] = {5, 5, 20, 20, 50, 50, 200, 200, 1000, 1000};
int mArr[10] = {6, 6, 40, 40, 30, 30, 300, 300, 1000, 1000};

int main(){
  srand(time(0));
  // 随机生成k组数据，放在k个in文件里
  for(int k = 1; k <= 10; k++){
    // 文件流
    string optFile = to_string(k) + ".in";
    ofstream fout = createOutputFStream(optFile);

    int n = nArr[k - 1], m = mArr[k - 1];

    fout << n << " " << m << endl;

    for(int i = 0; i < n; i++){
      for(int j = 0; j < n; j++){
        fout << randomInt(0, 100) << " ";
      }
      fout << endl;
    }
    
    for(int i = 0; i < n; i++){
      for(int j = 0; j < n; j++){
        fout << randomInt(0, 100) << " ";
      }
      fout << endl;
    }
  }
  
  
}